package com.telrob.antlr.type;

public class DeclaraType extends XnType {
	private XnType type;
	private IdType name;
	private XnType value;
	
	public DeclaraType(XnType type, AssignmentType value) {
		this.type=type;
		this.name=value.getName();
		this.value=value.getValue();
	}
	
	public DeclaraType(XnType type, IdType name) {
		super();
		this.type = type;
		this.name = name;
	}
	public DeclaraType(XnType type, IdType name, XnType value) {
		super();
		this.type = type;
		this.name = name;
		this.value = value;
	}
	public XnType getType() {
		return type;
	}
	public void setType(XnType type) {
		this.type = type;
	}
	public IdType getName() {
		return name;
	}
	public void setName(IdType name) {
		this.name = name;
	}
	public XnType getValue() {
		return value;
	}
	public void setValue(XnType value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "DeclaraType [type=" + type + ", name=" + name + ", value=" + value + "]";
	}
}
